import request from '#/utils/requestAbort';

export async function queryNodePriceComparison(param) {
  if (param.marketId === 'PDBLJ' || param.marketId === 'PXBNX') {
    // 处理 黑龙江 的特殊逻辑
    return request(`/market-disclosure/stationPointPriceComparison/nodePriceComparison`, {
      method: 'post',
      data: param,
    });
  }
  return request(`/disclosure/stationPointPriceComparison/nodePriceComparison`, {
    method: 'post',
    data: param,
  });
}
export async function queryNodePriceDistributionStatistics(param) {
  if (param.marketId === 'PDBLJ' || param.marketId === 'PXBNX') {
    // 处理 黑龙江 的特殊逻辑
    return request(
      `/market-disclosure/stationPointPriceComparison/nodePriceDistributionStatistics`,
      {
        method: 'post',
        data: param,
      },
    );
  }
  return request(`/disclosure/stationPointPriceComparison/nodePriceDistributionStatistics`, {
    method: 'post',
    data: param,
  });
}
export async function priceComparisonBeforeAndAfterCorrection(param) {
  if (param.marketId === 'PDBLJ') {
    // 处理 黑龙江 的特殊逻辑
    return request(
      `/market-disclosure/stationPointPriceComparison/priceComparisonBeforeAndAfterCorrection`,
      {
        method: 'post',
        data: param,
      },
    );
  }
  return request(
    `/disclosure/stationPointPriceComparison/priceComparisonBeforeAndAfterCorrection`,
    {
      method: 'post',
      data: param,
    },
  );
}
export async function queryStationAndNode(param) {
  if (param.marketId === 'PDBLJ' || param.marketId === 'PXBNX') {
    // 处理 黑龙江 的特殊逻辑
    return request(`/market-disclosure/stationPointPriceComparison/stationAndNode`, {
      method: 'post',
      data: param,
    });
  }
  return request(`/disclosure/stationPointPriceComparison/stationAndNode`, {
    method: 'post',
    data: param,
  });
}
